package  com.kdgc.power.base.service;

import com.kdgc.power.common.util.StringUtil;
import com.kdgc.power.fw.service.BaseService;
import org.beetl.sql.core.page.PageResult;
import org.springframework.stereotype.Service;
import com.kdgc.power.base.entity.BaseMusic;

import java.util.HashMap;
import java.util.Map;

@Service
public class BaseMusicService extends BaseService<BaseMusic> {
    public PageResult<Map<String, Object>> searchPage(int page, int rows, String musicName) {
        Map<String, Object> paras = new HashMap<>();
        if (StringUtil.isNotEmpty(musicName)) {
            paras.put("musicName", "%" + musicName + "%");
        }
        return getPage("baseMusic.select", paras, page, rows);
    }
}